package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "com-bonisenhome-entity-CoinSetting")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CoinSetting implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 可使用的积分数量，1积分等于1分钱
     */
    @ApiModelProperty(value = "可使用的积分数量，1积分等于1分钱")
    private BigDecimal coinAmount;

    /**
     * 最低可使用积分的消费金额
     */
    @ApiModelProperty(value = "最低可使用积分的消费金额")
    private BigDecimal minAmount;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    private static final long serialVersionUID = 1L;

    public static CoinSettingBuilder builder() {
        return new CoinSettingBuilder();
    }
}